﻿namespace 请求响应加密.Param
{
    public class OperateResult
    {
        public string Msg { get; set; }
        public bool State { get; set; } = true;
        public object Data { get; set; }

        public OperateResult() : this("请求成功", true) { }

        public OperateResult(string msg) : this(msg, true) { }

        public OperateResult(string msg, bool state) : this(msg, state, null) { }

        public OperateResult(string msg,bool state,object data) 
        {
            Msg = msg;
            State = state;
            Data = data;
        }
    }
}
